﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Default.Master" Inherits="System.Web.Mvc.ViewPage<WebStickyNotes.Contracts.TaskAudit>" %>
<%@ Import Namespace="WebStickyNotes.Resources" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Labels.TaskAudit %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <article>
        <header>
            <h2><%= Labels.TaskAudit %></h2>
        </header>
        <section>
            <p><%= Labels.TaskAudit %> : <%= Model.Title %></p>
            <p><%= Labels.Date %>: <%= Model.AuditDate %></p>
            <% if (Model.AuditFor != "Misc") { %>
            <div>
                <h3 class="admin"><%= Labels.ChangeDetails %></h3>
                <p><%= Labels.AuditFor %> : <%= Model.AuditFor %></p>
                <p><%= Model.ItemAfter.Replace(",", "<br>").Replace("{", string.Empty).Replace("}", string.Empty) %></p>
                <p><%= Html.ActionLink(Labels.ViewItem, "Edit", Model.AuditFor, new { id = Model.ItemId }, null) %></p>
            </div>
            <% } %>
            <h3 class="admin"><%= Labels.ChangedBy %></h3>
            <% Html.RenderAction("Detail", "TaskPerson", new {id = Model.TaskPersonId}); %>
        </section>
    </article>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
